import request from '@/utils/request'

export function goodsImgList(gid) {
  return request({
    url: "/backstage/goodsImg/list/" + gid,
    method: 'get'
  });
}

export function insertGoodsImg(id, img) {
  return request({
    url: "/backstage/goodsImg/insertImg",
    method: 'put',
    data: {
      gid: id,
      imgList: img
    }
  });
}
